﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PageMaster.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Área Pessoal
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="barralateral" runat="server">
<!--Parceiros-->
		<% Html.RenderPartial("LateralNegocioConhecido"); %>
	<!--Parceiros-->
	<!--Comerciais-->
		<% Html.RenderPartial("LateralComerciais"); %>
	<!--Comerciais-->
	<!--Facebook-->
	<% Html.RenderPartial("LateralFacebook"); %>
	<!--Facebook-->
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script src="../../../Scripts/jquery-ui-1.8.1.custom.min.js" type="text/javascript"></script>
<link href="../../../Content/jquery-ui/cupertino/jquery-ui-1.8.1.custom.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>

	
	<script type="text/javascript">
		var isValid = true;
		$(function () {
			$("#tabs").tabs({
				ajaxOptions: {
					error: function (xhr, status, index, anchor) {
						$(anchor.hash).html("Couldn't load this tab. We'll try to fix this as soon as possible. If this wouldn't be a demo.");
					}
				}
			});
			$("#tabs").tabs("select", <%: ViewData["Tab"] %>);
			//$("#tabs").tabs({ cache: true });
			$("#tabs").tabs({select: function(event, ui) {
					if(!isValid)
					{
						$.notifyBar({ html: "Tem de gravar as alterações!",
							cls: "error"
						});
					}
					return isValid;
				}
			});
		});
	</script>

<div style="min-height:500px;margin-left:-12px;margin-right:-12px;margin-top:-21px;">
	<div id="tabs">
	<ul>
		<li><a href="/Account/Settings/<%:ViewData["ClienteId"] %>">Alertas</a></li>
		<li><a href="/Account/UserInfo/<%:ViewData["ClienteId"] %>">Dados Pessoais</a></li>
		<li><a href="/Account/Deals/<%:ViewData["ClienteId"] %>">Meus Negócios</a></li>
		<li><a href="/Account/Premios/<%:ViewData["ClienteId"] %>">Prémios</a></li>
	</ul>

</div>

</div>
</asp:Content>


